package com.david.entity;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * @author David
 */
@Data
public class RegisterHr {

    private String email;

    private String file;

    @Size(min = 5, message = "密码长度过短!")
    @NotEmpty(message = "账户密码为必填项！")
    private String password;

    private String phone;

    @Size(min = 1, message = "每个人都需要有自己的人生格言！")
    private String remark;

    @Size(min = 3, message = "账户名称过短！")
    private String username;

}
